package com.aifeng.hassan_food.mine

import android.graphics.Paint
import android.os.Bundle
import com.aifeng.base.BaseActivity
import com.aifeng.common_ui.base.oneClick
import com.aifeng.hassan_food.R
import com.aifeng.hassan_food.WebActivity
import kotlinx.android.synthetic.main.activity_about.*
import org.jetbrains.anko.startActivity

class AboutActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_about)
        initTitle(title = "关于我们")
    }

    override fun initTitle(title: String, name: String, divider: Boolean) {
        super.initTitle(title, name, divider)
        about_deal.apply {
            paint.flags = Paint.UNDERLINE_TEXT_FLAG
            oneClick { startActivity<WebActivity>("title" to "用户协议") }
        }
        about_secret.apply {
            paint.flags = Paint.UNDERLINE_TEXT_FLAG
            oneClick { startActivity<WebActivity>("title" to "隐私政策") }
        }
    }

}
